<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- # 瞄点 不跳转页面就行 -->
    <a href="#ccc">hello 单车</a>
    <a href="#about"> 关于</a>
    <div style="height:3000px; background-color: green;"></div>
    <a name="ccc" style="background-color: yellow;">跳转</a>
    <div style="height:3000px; background-color: red;"></div>
    <a name="about" style="background-color: yellow;">跳转about</a>
    <script>
        window.onhashchange = function(event) {
            console.log(event)
        }
    </script>
</body>
</html>